package cn.hallele.leinsteining.ms.support.starter.components.plugin.properties;

import cn.hallele.leinsteining.ms.infrastructure.plugin.captcha.properties.CaptchaProperties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 插件配置
 *
 * @author anle5
 * @since 2024/7/28 15:15
 */
@Data
@ConfigurationProperties(prefix = "leinsteining.support.plugin")
public class PluginProperties {
    /**
     * 验证码配置
     */
    private CaptchaProperties captcha;

    /**
     * security组件的统一的加解密工具
     */
    private PasswordEncodeProperties passwordEncoder;

    /**
     * security组件的统一的加解密工具配置定义
     */
    @Data
    public static class PasswordEncodeProperties {
        /**
         * 私钥
         */
        private String priKey;

        /**
         * 公钥
         */
        private String pubKey;
    }
}
